import wepy from 'wepy'

export default class IsLogin extends wepy.mixin {

  isLogin(){
    let account = wx.getStorageSync('account') || null
    let sessionId = wx.getStorageSync('sessionId') || null
    if(!account || !sessionId) {
      setTimeout(function () {
        wepy.reLaunch({
          url: "/pages/login"
        });
      },100)
    }
  }
}
